import Toast from '@vant/weapp/toast/toast';

export function checkIfLogin(){
  const token = wx.getStorageSync('token')
  if(!token){
    Toast.fail('请先登录!');
    setTimeout(function(){
      wx.reLaunch({
        url: '/pages/login/login',
      })
    },1000)
  }  
}

